﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebEntities.Models.Framework
{
    public class MemDefModual
    {
        public int ModID { get; set; }
        public string MemberID { get; set; }
        public int? MenuItemID { get; set; }
        public string MenuItemName { get; set; }
        public string MenuItemUrl { get; set; }
        public int? SortNum { get; set; }
        public string ModualName { get; set; }
        public string ModualImg { get; set; }

        public MemDefModual AsMemDefModual(FW_MemDefModual fmModual, string muItemName, string muItemUrl)
        {
            MemDefModual modual = new MemDefModual
            {
                ModID = fmModual.ModID,
                MemberID = fmModual.MemberID,
                MenuItemID = fmModual.MenuItemID,
                MenuItemName = muItemName,
                MenuItemUrl = muItemUrl,
                SortNum = fmModual.SortNum,
                ModualName = fmModual.ModualName,
                ModualImg = fmModual.ModualImg
            };
            return modual;
        }
    }
}
